<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        a = 12
        b = 'string'
        c = NaN
        alert(`反引号用于拼接变量，如a=${a}, b=${b}, c=${c}`)

        //自定义对象
        let obj = {
            name: '张三',
            age: 18,
            gender: '男',
            say() {
                alert(`我是${this.name}, 我${this.age}岁`)
            }
            
        }

        obj.say()
    </script>
</body>
</html>